<template>
  <div class="header">
    <van-icon name="arrow-left" @click="routerP" size=".4rem" />
    <slot name="tit"></slot>
  </div>
</template>

<script>
export default {
  name:'Lheader',
  methods:{
    routerP(){
      this.$router.push('/Payment');
    }
  }
}
</script>

<style scoped lang="less">
.header{
  background-color: #fff;
  display: flex;
  align-items: center;
  h3{
    margin: 0 auto;
  }
}
</style>